package com.yangrr.weblog.web.model.vo.user;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;

@Data
public class RegisterDto {
    //用户名
    @NotNull(message = "用户名不能为空")
    private String username;

    //密码
    @NotNull(message = "密码不能为空")
    private String password;

    //密码
    @NotNull(message = "确认密码不能为空")
    private String confirmPassword;

    //邮箱
    @Email(message = "邮箱格式不正确")
    private String email;

    //验证码
    @NotNull(message = "验证码不能为空")
    private String code;
}